package com.example.demo.entity.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author gxh
 * 书籍实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {
    private int id;
    //图书名称
    private String name;
    //类型id
    private int typeId;
    //价格
    private double price;
    //数量
    private int count;
    //作者
    private String author;
    //年份
    private int year;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getIndroduction() {
        return indroduction;
    }

    public void setIndroduction(String indroduction) {
        this.indroduction = indroduction;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    //简介
    private String indroduction;
    //图片地址
    private String url;
    //出版社
    private String press;


}
